<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <title>图片分享社区</title>
    <link href="${pageContext.request.contextPath}/CSS/animate.min.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/CSS/bootstrap.css" />
  </head>
  <body>
<div class="container">
  <div class="row">
  <div class="col-md-2">
  </div>

  <div class="col-md-8 center-block" style="margin-top:20%;">
  <div class="jumbotron animated bounceIn">
  <h2 style="color:red;text-align:center;"><s:property value="tip"/></h2>
 <p class="bg-danger" style="text-align:center;">页面正在跳转。。。请稍后&nbsp;&nbsp;<span id="span"></span><a href="<%=basePath%>adminlogin/login.jsp">立即跳转</a></p>
</div>
</div>

<div class="col-md-2"></div>

  </div>
  
</div>
<script type="text/javascript">  
//设定倒数秒数4秒  
var t = 5;  
//显示倒数秒数  
function showTime(){  
    t -= 1;  
    document.getElementById('span').innerHTML= t;  
    if(t==0){  
        location.href='<%=basePath%>adminlogin/login.jsp';  
    }  
    //每秒执行一次,showTime()  
    setTimeout("showTime()",1000);  
}  
  
  
//执行showTime()  
showTime();  
</script>  
  </body>
</html>
